﻿using System;
using System.Collections.Generic;
using System.Text;
using Estimate.Common.DBFieldTypes;

namespace Estimate.Common.Entity
{
    /// <summary>
    /// 排班表记录
    /// </summary>
    [Serializable]
    public class ScheduleEntity
    {
        public int id;
        public ScheduleType type;//新的排班表已经去除
        /// <summary>
        /// 预报时效分类
        /// </summary>
        public ScheduleSpanKind SpanKind;//新添加
        /// <summary>
        /// 排班表日期
        /// </summary>
        public DateTime RealDate;
        /// <summary>
        /// 预报员所对应的站点
        /// </summary>
        public string Station;
        /// <summary>
        /// 预报员所对应的站点名称
        /// </summary>
        public string StationName;//新添加
        /// <summary>
        /// 预报员所在地区的所有站点
        /// </summary>
        public string Stations;
        public ForeClockType Clock;
        public ForeSpanType Span;//新的排班表已经去除
        public ForeSendpointType Sendpoint;
        /// <summary>
        /// 预报编号，可以有多个预报以逗号隔开
        /// </summary>
        public string ForecastNumber;

        public void Copy(ScheduleEntity entity)
        {
            id = entity.id;
            SpanKind = entity.SpanKind;
            RealDate = entity.RealDate;
            Station = entity.Station;
            StationName = entity.StationName;
            Stations = entity.Stations;
            Clock = entity.Clock;
            Sendpoint = entity.Sendpoint;
            ForecastNumber = entity.ForecastNumber;
        }
    }

   
}
